#ifndef SystemMacros_h
#define SystemMacros_h
//-------------------系统参数-------------------------
//导航栏的Y值
#define kNavY [[UIApplication sharedApplication] statusBarFrame].size.height
//导航栏的高度
#define kNavBarHeight 44.0
//导航栏的总高度
#define kNavHeight (kNavY + kNavBarHeight)
//标签栏的高度
#define kTabBarHeight (kNavY>20?83:49)


#define kAppDelegate        [AppDelegate shareAppDelegate]

//HUD消失的时间
#define HUDTime 1.5



//获取屏幕宽高
#define kScreenWidth ([[UIScreen mainScreen] bounds].size.width)
#define kScreenHeight [[UIScreen mainScreen] bounds].size.height

#define Iphone6PScaleWidth kScreenWidth/414.0
#define Iphone6PScaleHeight kScreenHeight/736.0
//根据ip6的屏幕来拉伸
#define kRealValue(with) ((with)*(kScreenWidth/414.0f))



// 当前系统版本
#define CurrentSystemVersion [[UIDevice currentDevice].systemVersion doubleValue]

//设置行间距
#define UILABEL_LINE_SPACE 12

#define UILABEL_WORD_SPACE 12

//弱引用/强引用
#define JDWeakSelf(type) __weak typeof(type) weak##type = type;
#define LRStrongSelf(type)  __strong typeof(type) type = weak##type;
#endif /* SystemMacros_h */
